package com.wz.project.viewTmsCk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.viewTmsCk.mapper.ViewTmsCkMapper;
import com.wz.project.viewTmsCk.domain.ViewTmsCk;
import com.wz.project.viewTmsCk.service.IViewTmsCkService;
import com.wz.common.utils.text.Convert;

/**
 * 出库单据子表Service业务层处理
 * 
 * @author wz
 * @date 2024-01-21
 */
@Service
public class ViewTmsCkServiceImpl implements IViewTmsCkService 
{
    @Autowired
    private ViewTmsCkMapper viewTmsCkMapper;

    /**
     * 查询出库单据子表
     * 
     * @param truckNumber 出库单据子表ID
     * @return 出库单据子表
     */
    @Override
    public ViewTmsCk selectViewTmsCkById(String truckNumber)
    {
        return viewTmsCkMapper.selectViewTmsCkById(truckNumber);
    }
    @Override
    public ViewTmsCk selectViewTmsCkById1(String waybillNumber)
    {
        return viewTmsCkMapper.selectViewTmsCkById1(waybillNumber);
    }

    /**
     * 查询出库单据子表列表
     * 
     * @param viewTmsCk 出库单据子表
     * @return 出库单据子表
     */
    @Override
    public List<ViewTmsCk> selectViewTmsCkList(ViewTmsCk viewTmsCk)
    {
        return viewTmsCkMapper.selectViewTmsCkList(viewTmsCk);
    }

    /**
     * 新增出库单据子表
     * 
     * @param viewTmsCk 出库单据子表
     * @return 结果
     */
    @Override
    public int insertViewTmsCk(ViewTmsCk viewTmsCk)
    {
        return viewTmsCkMapper.insertViewTmsCk(viewTmsCk);
    }

    /**
     * 修改出库单据子表
     * 
     * @param viewTmsCk 出库单据子表
     * @return 结果
     */
    @Override
    public int updateViewTmsCk(ViewTmsCk viewTmsCk)
    {
        return viewTmsCkMapper.updateViewTmsCk(viewTmsCk);
    }

    /**
     * 删除出库单据子表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteViewTmsCkByIds(String ids)
    {
        return viewTmsCkMapper.deleteViewTmsCkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除出库单据子表信息
     * 
     * @param truckNumber 出库单据子表ID
     * @return 结果
     */
    @Override
    public int deleteViewTmsCkById(String truckNumber)
    {
        return viewTmsCkMapper.deleteViewTmsCkById(truckNumber);
    }
}
